package ${package}.${moduleName}.entity;

import java.math.BigDecimal;
import java.time.LocalDate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
<#list importList as i>
import ${i!};
</#list>
<#if baseClass??>
import ${baseClass.packageName}.${baseClass.code};
</#if>

/**
 * ${tableComment}
 *
 * @author ${author} ${email}
 * @since ${version} ${date}
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("${tableName}")
@ApiModel(value = "${ClassName}对象", description = "${tableComment}")
public class ${ClassName} <#if baseClass??> extends ${baseClass.code}</#if> {
<#list fieldList as field>
<#if !field.baseField>
	<#if field.fieldComment!?length gt 0>
	/**
	* ${field.fieldComment}
	*/
	</#if>
    <#if field.primaryPk>
		@TableId(value = "id", type = IdType.AUTO)
	<#else>
		@TableField("${field.fieldName}")
	</#if>
	@ApiModelProperty("${field.fieldComment}")
	private ${field.attrType} ${field.attrName};
</#if>

</#list>
}